<div class="content-titulo">
    <h2><?php echo $this->titulo;?></h2>
    <div class="content-btn">
        <a href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'edit','mat_id' => $this->mat_id)); ?>">+</a>
    </div>
</div>

<div class="content-list">
    
<?php foreach ($this->result as $row) { ?>
    <div class="item" style="height:120px">    
        <div class="col" style="width: 300px">
            <p><strong>Código: <?php echo $row['GCD_ID']; ?></strong></p>
            <p><strong>Título: </strong><?php echo $row['GCD_NOM']; ?></p>
            <p><strong>Status: </strong><?php echo tools::returnStatus($row['GCD_STA']); ?></p>
        </div>
        <div class="col" style="width: 200px">
         
        </div>
        
        <div class="col" style="width: 100px">
            
        </div>
        
       
        
        <div class="btn-actions" style="padding-top: 10px;">
            <?php if($this->per_edt){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'edit', 'id' => $row['GCD_ID'])); ?>">Editar</a><?php }?>
            <?php if($this->per_edt){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => 'cordetalhe', 'action' => 'index', 'gcd_id' => $row['GCD_ID'])); ?>">Cor</a><?php } ?>
            <?php /* if($this->per_edt){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => 'gradecorsec', 'action' => 'index', 'GCD_ID' => $row->GCD_ID)); ?>">Cor Secundária</a><?php } */ ?>
            <?php if($row['GCD_STA'] == 0){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'delete', 'id' => $row['GCD_ID'])); ?>">Deletar</a><?php }?>
        </div>

      </div>
    <?php } ?>
</div>
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>
